package com.ecmcloud.config.exception;

import com.ecmcloud.common.utils.JsonMapperUtils;

import lombok.AllArgsConstructor;
import lombok.Getter;


@AllArgsConstructor
public enum ResultCode {

    LOGIN_USER_NOTFOUND(400, "用户不存在"),

    LOGIN_USER_FAIL(400, "用户名或密码错误");

    @Getter
    private Integer code;

    @Getter
    private String msg;

    @Override
    public String toString() {
        return JsonMapperUtils.toJsonString(this);
    }
}
